package spring.superrun.record.mvc.setup;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;

import java.util.HashSet;
import java.util.Set;

//@Component
//@PropertySource("classpath:application.yml")
//@ConfigurationProperties(prefix = "spring.redis.cluster")

public class RedisConfig {

    @Value("${hosts}")
    private String hosts;

    public String getHosts() {
        return hosts;
    }

    public void setHosts(String hosts) {
        this.hosts = hosts;
    }
    /**
     * 打卡排名计算（生产者/消费者模式）队列key
     */
    public  static final String  RecordRankingQueueKey= "RecordRankingQueueKey";

}